{extend name="base" /} {block name="body"}
{block name="css"}
	<link rel="stylesheet" href="/public/oem/css/iconfont.css" />
	<link rel="stylesheet" href="/public/oem/css/css.css" />
{/block}
<div class="layui-body">
	<div class="navbar">
		<a><cite>财务管理</cite></a>&nbsp;<span class="layui-box">&gt;</span>
		<a href=""><cite>支付日志 </cite></a>
	</div>		
	<!--tab标签-->
	<div class="layui-tab layui-tab-brief">
		<ul class="layui-tab-title">
			<li class="layui-this">支付日志</li>
		</ul>
		<div class="layui-tab-content">
			<form class="layui-form layui-form-pane" action="{:url('finance/sk_logs')}" method="get">
				<div class="layui-inline">
					<label class="layui-form-label">搜索关键字</label>
					<div class="layui-input-inline">
						<input type="text" name="keyword" value="" placeholder="会员编号/姓名/手机号" class="layui-input">
					</div>
				</div>
				<div class="layui-inline">
					<select name="order_type">
						<option value="">请选择收款类型</option>
						<option value="1">个人会员付款</option>
						<option value="2">企业会员付款</option>
						<option value="3">订单</option>
						<option value="4">充值</option>
						<option value="5">收款码收款</option>
						<option value="6">预定订单</option>
					</select>
				</div>
				<div class="layui-inline">
					<label class="layui-form-label" style="width: 150px">时间</label>
		            <div class="layui-inline">
					    <div class="layui-input-inline">
				        <input type="text" class="layui-input" {if $begin_time} value="{$begin_time}" {/if} name="begin_time" id="begin_time" placeholder="yyyy年MM月dd日">
					    </div>
					</div>
		                <i class="chax_line"></i>
		            <div class="layui-inline">
					    <div class="layui-input-inline">
					    <input type="text" class="layui-input" {if $end_time} value="{$end_time}" {/if}  name="end_time"  id="end_time" placeholder="yyyy年MM月dd日">
					    </div>
					</div>
				</div>
				<div class="layui-inline">
					<button class="layui-btn">搜索</button>
				</div>
			</form>
			<hr>
			<table class="layui-table layui-form">
				<thead>
					<tr>
						<th>ID</th>
						<th>订单编号</th>
						<th>会员编号</th>
						<th>会员姓名</th>
						<th>订单金额</th>
						<th>商品名称</th>
						<th>付款时间</th>
						<th>直推奖励</th>
						<th>间推奖励</th>
						<th>合伙人奖励</th>
						<th>运营中心奖励</th>
					</tr>
				</thead>
				<tbody>
					<form id="listForm">
					{foreach name="list" item="vo"}
					<tr>
						<td>{$vo.id}</td>
						<td>{$vo.sn}</td>
						<td>{$vo.user_id}</td>
						<td>{$vo.real_name}</td>
						<td>{$vo.balance}</td>					
						<td>
							{if $vo.order_type==1}
							个人会员付款
							{elseif $vo.order_type==2}	
							企业会员付款
							{elseif $vo.order_type==3}	
							订单
							{elseif $vo.order_type==4}	
							充值
							{elseif $vo.order_type==4}	
							收款码收款
							{else/}	
							预定订单
							{/if}
						</td>
						<td>{$vo.add_time}</td>
						<td>{$vo.tj_yj}</td>
						<td>{$vo.tj_yj2}</td>
						<td>{$vo.pt_yj}</td>
						<td>{$vo.city_yj}</td>
					</tr>
					{/foreach}
					</form>
				</tbody>
			</table>
			<!--分页-->
			{$list->render()}
		</div>
	</div>
</div>
{/block}
{block name="js"}
<script src="/public/static/layui/layui.js"></script>
<script>
	// 定义全局JS变量
	var GV = {
		current_controller: "{$controller}/sk_logs"
	};
	layui.use('laydate', function(){
		var laydate = layui.laydate;
		
		//日期控件
		laydate.render({
		    elem: '#begin_time'
		    ,type: 'datetime'
		    ,format: 'yyyy-MM-dd HH:mm:ss'
		});
		  
		laydate.render({
		    elem: '#end_time'
		    ,type: 'datetime'
		    ,format: 'yyyy-MM-dd HH:mm:ss'
		});
		
	})
</script>
{/block}